package com.cdu.guoxinan.www.smartcom.mapper;

import com.cdu.guoxinan.www.smartcom.domian.dto.VehicleQueryDTO;
import com.cdu.guoxinan.www.smartcom.domian.pojo.ParkingSpot;
import com.cdu.guoxinan.www.smartcom.domian.pojo.Vehicle;
import com.cdu.guoxinan.www.smartcom.domian.vo.VehicleVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VehicleMapper {
    List<VehicleVO> queryPage(VehicleQueryDTO vehicleQueryDTO);

    int add(Vehicle vehicle);

    int update(Vehicle vehicle);

    int delete(Integer id);

    int updateParkingSpotStatus(ParkingSpot parkingSpot);
    int updateParkingSpotId(Vehicle vehicle);
}
